package com.wf.log.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wf.log.dao.LogDao;

@Service
public class LogServiceImpl implements LogService{

	@Autowired
	private LogDao logDao;
	
	public boolean addArticleInfo(String ip, String ipregion, int indexType) {
		try {
			logDao.addArticleInfo(ip, ipregion,indexType);
		} catch (Exception e) {
			System.out.println(e);
		}
		return true;
	}

	public long getArticleInfoCount() {
		return logDao.getArticleInfoCount();
	}


}
